<?php
include "./base.php";
$name = $_GET['likename'];
$sql = "select * from apply where apply.aname like '%$name%'";
$res = mysql_query($sql);
$arr = array();
    while($row = mysql_fetch_assoc($res)){
        array_push($arr,$row);
    }
    print_r(json_encode($arr));
?>